package com.amigo.online.amigo.online.provider.mimc.config

import com.alibaba.fastjson.JSONObject
import okhttp3.MediaType

object Constants {
    //获取基本请求（包含appkey，appSecret,appId)
    fun getBaseRequest(): JSONObject {
        val json = JSONObject()
        json["appId"] = appId
        json["appSecret"] = appSecret
        json["appKey"] = appKey
        return json
    }

    val JSON = MediaType.get("application/json; charset=utf-8")

    private const val appKey = "5251768668020"

    private const val appSecret = "QW9F3igAEamnK3BJ2ePrhA=="

    private const val appId = "2882303761517686020"

    const val MIMC_TOKEN = "https://mimc.chat.xiaomi.net/api/account/token"
}